<!doctype html>
<html>
<head>
    <meta charset=utf-8>
    <meta name="robots" content="noindex,nofollow">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="<?=Web_Path?>packs/layui/css/layui.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/font.css">
    <link rel="stylesheet" href="<?=Web_Path?>packs/admin/css/style.css">
    <script src="<?=Web_Path?>packs/js/jquery.min.js"></script>
    <script src="<?=Web_Path?>packs/layui/layui.js"></script>
    <script src="<?=Web_Path?>packs/admin/js/cscms.js"></script>
</head>
<body id="index_setting">
    <span class="layui-breadcrumb" >
        <a ><cite><i class="fa fa-map-marker"></i><?=L('tpl_ftp_00')?></cite></a>
        <a href="javascript:;"><?=L('tpl_ftp_01')?></a>
        <a href="<?=site_url('setting/ftp')?>"><?=L('tpl_ftp_02')?></a>
    </span>
    
    <form class="layui-form layui-form-pane" action="<?=site_url('setting/ftp_save')?>" method="post">
        <fieldset class="layui-elem-field" style="margin-top: 15px;">
            <legend><?=L('tpl_ftp_03')?></legend>
            <div class="layui-field-box">
                <div class="layui-form-item">
                    <label class="layui-form-label"><?=L('tpl_ftp_04')?></label>
                    <div class="layui-input-block" onclick="cscms.show_hide('ftpmode','UP_Mode')">
                    <?php
                        foreach ($up as $k=>$v) {
                            $check = (UP_Mode==$k)?' checked="checked"':'';
                            echo '<input name="UP_Mode" type="radio" value="'.$k.'"'.$check.' title="'.$v['name'].'">';
                        }
                    ?>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><?=L('tpl_ftp_05')?></label>
                    <div class="layui-input-inline">
                        <input type="text" name="UP_Size" value="<?=UP_Size?>" placeholder="<?=L('tpl_ftp_06')?>" class="layui-input">
                    </div>
                    <div class="layui-form-mid layui-word-aux">KB</div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><?=L('tpl_ftp_07')?></label>
                    <div class="layui-input-inline">
                        <input type="text" name="UP_Type" placeholder="<?=L('tpl_ftp_08')?>" value="<?=UP_Type?>" class="layui-input">
                    </div>
                </div>
            </div>
        </fieldset>
        <fieldset class="layui-elem-field ftpmode ftpmode1" style="<?php if(UP_Mode==1)echo 'display: block';?>">
            <legend><?=L('tpl_ftp_09')?></legend>
            <div class="layui-field-box">
                <div class="layui-form-item">
                    <label class="layui-form-label"><?=L('tpl_ftp_10')?></label>
                    <div class="layui-input-inline">
                        <input type="text" name="UP_Url" placeholder="<?=L('tpl_ftp_11')?>"  value="<?=UP_Url?>" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><?=L('tpl_ftp_12')?></label>
                    <div class="layui-input-inline">
                        <input type="text" name="UP_Pan" placeholder="<?=L('tpl_ftp_13')?>" value="<?=UP_Pan?>" autocomplete="off" class="layui-input">
                    </div>
                </div>
            </div>
        </fieldset>
        <fieldset class="layui-elem-field ftpmode ftpmode2" style="<?php if(UP_Mode==2)echo 'display: block';?>">
            <legend><?=L('tpl_ftp_14')?></legend>
            <div class="layui-field-box">
                <div class="layui-form-item">
                    <label class="layui-form-label"><?=L('tpl_ftp_15')?></label>
                    <div class="layui-input-inline">
                        <input type="text" name="FTP_Url" placeholder="<?=L('tpl_ftp_16')?>" value="<?=FTP_Url?>" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><?=L('tpl_ftp_17')?></label>
                    <div class="layui-input-inline">
                        <input type="text" name="FTP_Server" placeholder="<?=L('tpl_ftp_18')?>" value="<?=FTP_Server?>" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><?=L('tpl_ftp_19')?></label>
                    <div class="layui-input-inline">
                        <input type="text" name="FTP_Port" placeholder="<?=L('tpl_ftp_20')?>" value="<?=FTP_Port?>" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><?=L('tpl_ftp_21')?></label>
                    <div class="layui-input-inline">
                        <input type="text" name="FTP_Dir" placeholder="<?=L('tpl_ftp_22')?>" value="<?=FTP_Dir?>" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><?=L('tpl_ftp_23')?></label>
                    <div class="layui-input-inline">
                        <input type="text" name="FTP_Name" placeholder="<?=L('tpl_ftp_23')?>" value="<?=FTP_Name?>" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><?=L('tpl_ftp_24')?></label>
                    <div class="layui-input-inline">
                        <input type="text" name="FTP_Pass" placeholder="<?=L('tpl_ftp_25')?>" value="<?=substr(FTP_Pass,0,3)?>******" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><?=L('tpl_ftp_26')?></label>
                    <div class="layui-input-inline">
                        <input type="checkbox" lay-skin="switch" lay-text="<?=L('tpl_ftp_27')?>" name="FTP_Ive"  value="1" <?php if(FTP_Ive==TRUE){echo 'checked';}?>>
                    </div>
                </div>
            </div>
        </fieldset>
        <fieldset class="layui-elem-field ftpmode ftpmode3" style="<?php if(UP_Mode==3)echo 'display: block';?>">
            <legend><?=L('tpl_ftp_28')?></legend>
            <div class="layui-field-box">
                <div class="layui-form-item">
                    <label class="layui-form-label"><?=L('tpl_ftp_29')?></label>
                    <div class="layui-input-inline">
                        <input type="text" name="CS_Qn_Bk" placeholder="<?=L('tpl_ftp_30')?>" value="<?=CS_Qn_Bk?>" class="layui-input">
                    </div>
                   <div class="layui-form-mid layui-word-aux"><a target="_blank" href="http://www.qiniu.com"><?=L('tpl_ftp_31')?></a></div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><?=L('tpl_ftp_32')?></label>
                    <div class="layui-input-inline">
                        <input type="text" name="CS_Qn_Ak" placeholder="<?=L('tpl_ftp_33')?>" value="<?=CS_Qn_Ak?>" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><?=L('tpl_ftp_34')?></label>
                    <div class="layui-input-inline">
                        <input type="text" name="CS_Qn_Sk" placeholder="<?=L('tpl_ftp_35')?>" value="<?=CS_Qn_Sk?>" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><?=L('tpl_ftp_36')?></label>
                    <div class="layui-input-inline">
                        <input type="text" name="CS_Qn_Url" placeholder="<?=L('tpl_ftp_37')?>" value="<?=CS_Qn_Url?>" class="layui-input">
                    </div>
                </div>
            </div>
        </fieldset>
        <fieldset class="layui-elem-field ftpmode ftpmode4" style="<?php if(UP_Mode==4)echo 'display: block';?>">
            <legend><?=L('tpl_ftp_38')?></legend>
            <div class="layui-field-box">
                <div class="layui-form-item">
                    <label class="layui-form-label"><?=L('tpl_ftp_39')?></label>
                    <div class="layui-input-inline">
                        <input type="text" name="CS_Os_Bk" placeholder="<?=L('tpl_ftp_40')?>" value="<?=CS_Os_Bk?>" class="layui-input">
                    </div>
                    <div class="layui-form-mid layui-word-aux"><a target="_blank" href="http://www.aliyun.com"><?=L('tpl_ftp_41')?></a></div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><?=L('tpl_ftp_42')?></label>
                    <div class="layui-input-inline">
                        <input type="text" name="CS_Os_Ai" placeholder="<?=L('tpl_ftp_43')?>" value="<?=CS_Os_Ai?>" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><?=L('tpl_ftp_44')?></label>
                    <div class="layui-input-inline">
                        <input type="text" name="CS_Os_Ak" placeholder="<?=L('tpl_ftp_45')?>" value="<?=CS_Os_Ak?>" class="layui-input">
                    </div>
                </div>
            </div>
        </fieldset>
        <fieldset class="layui-elem-field ftpmode ftpmode5" style="<?php if(UP_Mode==5)echo 'display: block';?>">
            <legend><?=L('tpl_ftp_46')?></legend>
            <div class="layui-field-box">
                <div class="layui-form-item">
                    <label class="layui-form-label"><?=L('tpl_ftp_47')?></label>
                    <div class="layui-input-inline">
                        <input type="text" name="CS_Upy_Bucket" placeholder="<?=L('tpl_ftp_48')?>" value="<?=CS_Upy_Bucket?>" class="layui-input">
                    </div>
                    <div class="layui-form-mid layui-word-aux"><a target="_blank" href="http://www.upyun.com"><?=L('tpl_ftp_49')?></a></div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><?=L('tpl_ftp_50')?></label>
                    <div class="layui-input-inline">
                        <input type="text" name="CS_Upy_Name" placeholder="<?=L('tpl_ftp_51')?>" value="<?=CS_Upy_Name?>" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><?=L('tpl_ftp_52')?></label>
                    <div class="layui-input-inline">
                        <input type="text" name="CS_Upy_Pwd" placeholder="<?=L('tpl_ftp_53')?>" value="<?=CS_Upy_Pwd?>" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"><?=L('tpl_ftp_54')?></label>
                    <div class="layui-input-inline">
                        <input type="text" name="CS_Upy_Url" placeholder="<?=L('tpl_ftp_55')?>" value="<?=CS_Upy_Url?>" class="layui-input">
                    </div>
                </div>
            </div>
        </fieldset>
        <div class="layui-form-item">
            <div class="layui-input-block noborder">
                <button style="margin-left: 20%;" class="layui-btn" lay-submit lay-filter="setting"><?=L('tpl_ftp_56')?></button>
                <button type="reset" class="layui-btn layui-btn-primary"><?=L('tpl_ftp_57')?></button>
            </div>
        </div>
    </form>
    
<script>
    cscms.init();
</script>
</body>
</html>
